package com.safe.ly_safe.utils;

import android.content.Context;

import com.android.tu.loadingdialog.LoadingDailog;

/**
 * @PACKAGE :com.safe.ly_safe.utils
 * @Author : HSF
 * @Time : On 2022/4/22 15:45
 * @Description : CustomLoadDialog
 */
public class CustomLoadDialog {

    public static LoadingDailog createDialog(Context context, String message){
        //初始化Dialog
        LoadingDailog.Builder loadBuilder = new LoadingDailog.Builder(context)
                .setMessage(message)
                .setCancelable(true)
                .setCancelOutside(true);
        LoadingDailog mDialog = loadBuilder.create();
        mDialog.setCanceledOnTouchOutside(false);
        return mDialog;
    }
}
